import React from 'react'
import ReactDOM from 'react-dom'

class Title extends React.Component {
  render () {
    return <h1>标题</h1>
  }
}
class Content extends React.Component {
  render () {
    return <section>内容</section>
  }
}
class App extends React.Component {
  render () {
    return <div>
      <Title></Title>
      <Content></Content>
    </div>
  }
}

ReactDOM.render(
  <App></App>,
  document.querySelector('#root')
)